﻿using System;
using System.Reflection;
using KKSG;
using XMainClient.UI;
using XUtliPoolLib;

namespace XMainClient
{
	// Token: 0x02001136 RID: 4406
	internal class Process_RpcC2A_UpLoadAudioReq
	{
		// Token: 0x0600D99E RID: 55710 RVA: 0x0032B574 File Offset: 0x00329774
		public static void OnReply(UpLoadAudioReq oArg, UpLoadAudioRes oRes)
		{
			if (oRes != null)
			{
				if (oRes.result == ErrorCode.ERR_INVALID_REQUEST)
				{
					string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName;
					XSingleton<UiUtility>.singleton.OnGetInvalidRequest(fullName);
				}
				else
				{
					//zcg 
// 					bool flag3 = oRes.result == ErrorCode.ERR_SUCCESS;
// 					if (flag3)
// 					{
// 						bool flag4 = oArg.srctype == 0U;
// 						if (flag4)
// 						{
// 							XSingleton<XChatIFlyMgr>.singleton.UpLoadMp3Res(oRes);
// 						}
// 						else
// 						{
// 							bool flag5 = oArg.srctype == 1U;
// 							if (flag5)
// 							{
// 								XSingleton<XChatApolloMgr>.singleton.UpLoadAudioRes(oRes);
// 							}
// 						}
// 					}
				}
			}
		}

		// Token: 0x0600D99F RID: 55711 RVA: 0x000FEEFC File Offset: 0x000FD0FC
		public static void OnTimeout(UpLoadAudioReq oArg)
		{
		}
	}
}
